import request from '@/utils/request'
// 动态轮播图
export function getDynaBanner(params) {
  return request({
    url: 'back/terrace/carousel?type=dynamicList',
    method: 'POST',
    params
  })
}
// 商城轮播图
export function getShopBanner(params) {
  return request({
    url: 'back/terrace/carousel?type=shopList',
    method: 'POST',
    params
  })
}
// 添加动态轮播
export function addDynaBanner(params) {
  return request({
    url: 'back/terrace/carousel?type=updateDynamic',
    method: 'POST',
    params
  })
}
// 添加商城轮播
export function addShopBanner(params) {
  return request({
    url: 'back/terrace/carousel?type=updateShop',
    method: 'POST',
    params
  })
}
// 删除动态轮播
export function deleteDynamic(params) {
  return request({
    url: 'back/terrace/carousel?type=deleteDynamic',
    method: 'POST',
    params
  })
}
// 删除商城轮播
export function delShopBanner(params) {
  return request({
    url: 'back/terrace/carousel?type=deleteShop',
    method: 'POST',
    params
  })
}
// 添加链接
export function addLink(params) {
  return request({
    url: 'back/terrace/link?type=setLink',
    method: 'POST',
    params
  })
}
// 获取链接区
export function getLink(params) {
  return request({
    url: 'back/terrace/link?type=getLink',
    method: 'POST',
    params
  })
}
// 删除链接
export function delLink(params) {
  return request({
    url: 'back/terrace/link?type=delete',
    method: 'GET',
    params
  })
}
// 促销区
export function getSales(params) {
  return request({
    url: 'back/terrace/sales?type=getSales',
    method: 'get',
    params
  })
}
// 添加促销
export function addSales(params) {
  return request({
    url: 'back/terrace/sales?type=setSales',
    method: 'post',
    params
  })
}
// 删除促销区
export function delSales(params) {
  return request({
    url: 'back/terrace/sales?type=delete',
    method: 'post',
    params
  })
}
